<div">
<?php 
  //odkaz veduci na listing projektov (akcia admin_list)
  //'admin' => true znamena, ze v url sa pouzije prefix "admin" a zavila sa akcia s tymto preffixom, cize "admin" + "list" = "admin_list"
  // http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::link
  $tmp = $this->Html->link('Späť', array('admin' => true, 'controller' => 'calls', 'action' => 'list'));
  echo str_replace('Späť', '<button class="bold rounded bordered gradient">Späť</button>', $tmp);
?>  
  <h1>Pridať výzvu</h1>
  
  <div id="detail">
<?php 
    // http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html
    // http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html#adding-posts
    echo $this->Form->create('Call', array('action' => 'edit'));
    echo $this->Form->input('name', array('label' => 'Názov výzvy'));
    echo $this->Form->input('description', array('label' => 'Popis výzvy'));
	echo $this->Form->input('agency_id', array('label' => 'Agentúra','options' => $options));
    echo $this->Form->input('is_deleted', array('label' => 'Zmazaný'));
    echo '<br />'.$this->Form->button('Uložiť výzvu', array('type' => 'submit', 'class' => 'bold rounded bordered gradient'));
    
    echo $this->Form->end();
?>
  </div>
</div>